Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add customized admin endpoints #618

Merged
merged 6 commits into from
Aug 11, 2020
Merged

Add customized admin endpoints #618

merged 6 commits into from
Aug 11, 2020

Conversation

DGarbar
Copy link
Contributor

@DGarbar DGarbar commented Feb 13, 2020

This PR revises admin endpoints configuration options:

  • admin-endpoints.version.*
  • admin-endpoints.currency-rates.*
  • admin-endpoints.storedrequest.*
  • admin-endpoints.storedrequest-amp.*
  • admin-endpoints.cache-invalidation.*
  • admin-endpoints.logger-level-modifier.*

Access can be secured with admin-endpoints.credentials property, like:

admin-endpoints:
  credentials:
    user1: pass1
    user2: pass2

Also, the path to each endpoint can be changed on demand with admin-endpoints.NAME.path property.

Keep in mind, we disable all admin endpoints by default.

Update configuration docs

Change
`/storedrequests/amp` -> `/pbs-admin/storedrequests/amp` (settings.in-memory-cache.notification-endpoints-enabled)
`/storedrequests/openrtb2` -> `/pbs-admin/storedrequests/openrtb2` (settings.in-memory-cache.notification-endpoints-enabled)
`/admin` -> `/pbs-admin/admin` (logger-level-modifier.enabled)
`/currency-rates` -> `/pbs-admin/currency-rates` (currency-converter.external-rates.enabled)

Keep in mind, that if any enabled, you need to specified corresponding: (bc we don't use default)
```
admin-endpoints.***.on-application-port=
admin-endpoints.***.protected=
```

Add configuration differences.
@DGarbar DGarbar requested a review from rpanchyk February 13, 2020 10:22
Remove unnecessary Map @bean.

Add explicit @bean name
schernysh
schernysh previously approved these changes Feb 17, 2020
# Conflicts:
#	docs/config-app.md
#	src/main/java/org/prebid/server/spring/config/WebConfiguration.java
#	src/test/java/org/prebid/server/it/ApplicationTest.java
rpanchyk and others added 3 commits August 6, 2020 16:36
@rpanchyk rpanchyk merged commit 7823338 into master Aug 11, 2020
@rpanchyk rpanchyk deleted the admin-endpoints-open branch August 11, 2020 13:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants